package com.jiuqi.ccp.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="CCP_INFO_BUSIGL"
 *     
*/
public class CcpInfoBusigl implements Serializable {

    /** identifier field */
    private String cfbgGuid;

    /** nullable persistent field */
    private String glCode;

    /** nullable persistent field */
    private String cfbLabel;

    /** nullable persistent field */
    private String glUnit;

    /** nullable persistent field */
    private String stateCode;

    /** nullable persistent field */
    private String sysOrder;

    /** nullable persistent field */
    private String remark;

    /** persistent field */
    private String cssclass;

    /** nullable persistent field */
    private String leafflag;

    /** full constructor */
    public CcpInfoBusigl(String cfbgGuid, String glCode, String cfbLabel, String glUnit, String stateCode, String sysOrder, String remark, String cssclass, String leafflag) {
        this.cfbgGuid = cfbgGuid;
        this.glCode = glCode;
        this.cfbLabel = cfbLabel;
        this.glUnit = glUnit;
        this.stateCode = stateCode;
        this.sysOrder = sysOrder;
        this.remark = remark;
        this.cssclass = cssclass;
        this.leafflag = leafflag;
    }

    /** default constructor */
    public CcpInfoBusigl() {
    }

    /** minimal constructor */
    public CcpInfoBusigl(String cfbgGuid, String cssclass) {
        this.cfbgGuid = cfbgGuid;
        this.cssclass = cssclass;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="CFBG_GUID"
     *         
     */
    public String getCfbgGuid() {
        return this.cfbgGuid;
    }

    public void setCfbgGuid(String cfbgGuid) {
        this.cfbgGuid = cfbgGuid;
    }

    /** 
     *            @hibernate.property
     *             column="GL_CODE"
     *             length="15"
     *         
     */
    public String getGlCode() {
        return this.glCode;
    }

    public void setGlCode(String glCode) {
        this.glCode = glCode;
    }

    /** 
     *            @hibernate.property
     *             column="CFB_LABEL"
     *             length="20"
     *         
     */
    public String getCfbLabel() {
        return this.cfbLabel;
    }

    public void setCfbLabel(String cfbLabel) {
        this.cfbLabel = cfbLabel;
    }

    /** 
     *            @hibernate.property
     *             column="GL_UNIT"
     *             length="10"
     *         
     */
    public String getGlUnit() {
        return this.glUnit;
    }

    public void setGlUnit(String glUnit) {
        this.glUnit = glUnit;
    }

    /** 
     *            @hibernate.property
     *             column="STATE_CODE"
     *             length="1"
     *         
     */
    public String getStateCode() {
        return this.stateCode;
    }

    public void setStateCode(String stateCode) {
        this.stateCode = stateCode;
    }

    /** 
     *            @hibernate.property
     *             column="SYS_ORDER"
     *             length="20"
     *         
     */
    public String getSysOrder() {
        return this.sysOrder;
    }

    public void setSysOrder(String sysOrder) {
        this.sysOrder = sysOrder;
    }

    /** 
     *            @hibernate.property
     *             column="REMARK"
     *             length="200"
     *         
     */
    public String getRemark() {
        return this.remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    /** 
     *            @hibernate.property
     *             column="CSSCLASS"
     *             length="32"
     *             not-null="true"
     *         
     */
    public String getCssclass() {
        return this.cssclass;
    }

    public void setCssclass(String cssclass) {
        this.cssclass = cssclass;
    }

    /** 
     *            @hibernate.property
     *             column="LEAFFLAG"
     *             length="1"
     *         
     */
    public String getLeafflag() {
        return this.leafflag;
    }

    public void setLeafflag(String leafflag) {
        this.leafflag = leafflag;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("cfbgGuid", getCfbgGuid())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof CcpInfoBusigl) ) return false;
        CcpInfoBusigl castOther = (CcpInfoBusigl) other;
        return new EqualsBuilder()
            .append(this.getCfbgGuid(), castOther.getCfbgGuid())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getCfbgGuid())
            .toHashCode();
    }

}
